<?php
class ajaxFileUploadWidget extends Widget{

	public function render($data){

        if(is_array($data)){
            if(isset($data['type'])){
                switch($data['type']){
                    case 'one':
                        $content = $this->renderFile('one',$data);
                        return $content;
                        break;
                    case 'more':
                        $content = $this->renderFile('more',$data);
                        return $content;
                        break;
                }
            }else{
                return '<font color="red">请在参数中输入类别type值</font>';
            }
        }else{
            return '<font color="red">请输入参数</font>';
        }
	}
}